package com.eis.sf.in.connector.conf;

import com.eis.sf.in.connector.SFConnectorStatics;
import com.eis.thirdsys.connector.conf.bean.ConfParameterName;
import com.eis.thirdsys.connector.conf.impl.GeneralConnectorConfig;

public class SFConnectorConfig extends GeneralConnectorConfig {
	@Override
	public void setup() {
		for (ConfParameterName oneName : new SFConnectorStatics().getConfParameterNames()) {
			super.addConfParameterName(oneName);
		}
	}

	public String toDisplayString() {
		try {
			return super.getOneConf(SFConnParameter.authEndPoint.name()).getValue()
					+ " user: "
					+ super.getOneConf(SFConnParameter.username.name()).getValue();
		} catch (Throwable t) {
			return "";
		}
	}
	
}
